<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>My Site</title>
    <style>
        .container {
            width: 1000px;
            /*background-color: lightgray;*/
            margin: 10px auto;
        }
        .banner img {
            width: 1000px;
            height: 150px;
        }
        .nav ul {
            list-style-type: none;  /*清除列表样式*/
            padding: 0;  /*清除默认的内边距*/
            margin: 0;
        }
        .nav ul li {
            float: left;  /*水平设置各项*/
        }
        .nav ul li a {
            display: block;  /*转成块级元素，以便设置宽度*/
            width: 200px;
            text-decoration: none;
            text-align: center;
            background-color: #BEBEBE;
            height: 30px;
            line-height: 30px;
            color: white;
            border-bottom: 2px solid #900B09;
        }
        .nav ul li a:hover {
            background-color: #900B09;
        }
        .footer {
            text-align: center;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="banner">
        <img src="https://img.zcool.cn/community/01aaee5cca62c6a8012141681d6dc1.jpg@1280w_1l_2o_100sh.jpg">
    </div>
    <div class="nav">
        <ul>
            <li><a href="#">HOME</a></li>
            <li><a href="#">LINUX</a></li>
            <li><a href="#">PYTHON</a></li>
            <li><a href="#">DATABASE</a></li>
            <li><a href="#">HTML</a></li>
        </ul>
    </div>
    <div class="main">main</div>
    <div class="footer">
        <a href="#">达内云计算</a>
    </div>
</div>
</body>
</html>